<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>策略分析</title>
    <script src="/static/echarts.js"></script>
</head>
<body>

{% include "header.html" %}

<div id="A3">
<table>
    <tr>
        <td>

			<form action="/strategies_test/" >
				<table class="table15_6">
					<tr>
						<td>基金编码</td>
						<td><input type="text" name="code"></td>
						<td><input type="submit"></td>
					</tr>
				</table>
			</form>


			<table class="table15_6">
				<tr>
					<td><b>策略名称</b></td>
					<td><b>交易日数</b></td>
					<td><b>定投期数</b></td>
					<td><b>购买次数</b></td>
					<td><b>总成本</b></td>
					<td><b>期末总价值</b></td>
					<td><b>收益率</b></td>
				</tr>

				{% for result in results %}
				<tr>
					<td><b>{{result.0}}</b></td>
					<td><b>{{result.1.total_cnt}}</b></td>
					<td><b>{{result.1.buy_cnt}}</b></td>
					<td><b>{{result.1.real_buy_cnt}}</b></td>
					<td><b>{{result.1.cost}}</b></td>
					<td><b>{{result.1.value}}</b></td>
					<td><b>{{result.1.income_rate}}</b></td>
				</tr>

				{% endfor %}

			</table>
        </td>
    </tr>
</table>
</div>

<style type="text/css">
.table15_6 table {
	width:100%;
	margin:15px 0;
	border:0;
}
.table15_6 th {
	font-weight:bold;
	background-color:#d3dae6;
	color:#202053
}
.table15_6,.table15_6 th,.table15_6 td {
	font-size:0.95em;
	text-align:center;
	padding:4px;
	border-collapse:collapse;
}
.table15_6 th {
	border: 1px solid #d3dae6;
	border-width:1px
}
.table15_6 td {
	border: 1px solid #d3dae6;
	border-width:1px
}
.table15_6 tr {
	border: 1px solid #ffffff;
}
.table15_6 tr:nth-child(odd){
	background-color:#f7f7f7;
}
.table15_6 tr:nth-child(even){
	background-color:#ffffff;
}
</style>

</body>
</html>
